

import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 大客户合同备案管理分页查询
export const searchContract = (_params) => axios.get(`${SERVER.CMSCLOUD_BIGCUSTOMER}/contract/majorContract`, {params:_params,menuId:'-1'});
// 大客户合同备案管理新增
export const insertContract = params => axios.post(`${SERVER.CMSCLOUD_BIGCUSTOMER}/contract/majorContract`,  params );


// 大客户合同备案管理修改
export const updataContract = (params, id) => axios.put(`${SERVER.CMSCLOUD_BIGCUSTOMER}/contract/majorContract/${id}`,  params );

// 大客户合同备案管理-导出
export const exportExcel = params => {
    params = Object.assign(params,{menuId:'-1'});
    return axios({
        url:`${SERVER.CMSCLOUD_BIGCUSTOMER}/contract/majorContract/export/excel`,
        method:'get',
        params:params,
        responseType: 'blob'
    });
};

// 进行大客户合同备案登记明细查询，无分页
export const searchDetailListByContractId = (_params) => axios.get(`${SERVER.CMSCLOUD_BIGCUSTOMER}/contract/majorContractDetail/detail/list`, { params:_params,menuId:'-1' });

